<?php
/* @var $this UserScheduleController */
/* @var $model User */

$this->breadcrumbs=array(
	'Management'=>array('/site/management/'),
	'User Schedules',
);
?>
<h1>Manage User Schedules</h1>

<br>
<p>

<?php
echo    CHtml::dropDownList('userSelect',
							 '',
							 CHtml::listData(User::model()->findAll(array('condition'=>'team ='.Yii::app()->user->team_id)),
																		  'iduser',
																		  'username'),
							 array(
									'empty'=> 'Select User',
									'ajax' => array(
													'type' => 'GET', 
													'url' => CController::createUrl('userSchedule/renderUserSchedule'),
													'data'=> array('iduser'=>'js: $(this).val()'),  
													'update'=>'#data',
												   ),
									'class'=>'dropusername',
							  )
							);
?>

<br>
<div id="data">
</div>
</p>